import useClipboard from 'vue-clipboard3';
const { toClipboard } = useClipboard();
import kva from '@/utils/kva.js'

const CopyText = async (text) => {
    try {
        await toClipboard(text);
        kva.success('复制成功');
    } catch (e) {
        console.error(e);
    }
}

export default  CopyText
